import { requestPort } from '../../utils/request.js';

//获取个人信息
export function getUserInfo(params) {
	return requestPort({
		url: '/api/user/getUserInfo',
		method: 'POST',
		params: params
	});
}

//修改密码
export function changePwd(params) {
	return requestPort({
		url: '/api/user/changepwdV1',
		method: 'POST',
		params: params
	});
}

//修改个人信息
export function editUserInfo(params) {
	return requestPort({
		url: '/api/user/profile',
		method: 'POST',
		params: params
	});
}

//是否提交注销
export function isDelUser(params) {
	return requestPort({
		url: '/api/user/is_deluser',
		method: 'POST',
		params: params
	});
}

//获取注销文案
export function getDelUserText(params) {
	return requestPort({
		url: '/api/index/getdelusertext',
		method: 'POST',
		params: params
	});
}

//发送验证码
export function getSend(params) {
	return requestPort({
		url: '/api/sms/send',
		method: 'POST',
		params: params
	});
}

//注销
export function delUser(params) {
	return requestPort({
		url: '/api/user/deluser',
		method: 'POST',
		params: params
	});
}

//获取邀请
export function newGetMyAllTeam(params) {
	return requestPort({
		url: '/api/User/new_getMyAllTeam',
		method: 'POST',
		params: params
	});
}


export function logout(params) {
	return requestPort({
		url: '/api/user/logout',
		method: 'POST',
		params: params
	});
}